<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">

			<view :class="['inv-h',Inv==5?'inv-h-se':'']" @click="yj_searchForm(Inv=5)">详情</view>
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="yj_searchForm(Inv=0)">闭合申请单</view>
			<view v-if="Fdata.Look>=1" :class="['inv-h',Inv==1?'inv-h-se':'']" @click="yj_searchForm(Inv=1)">一级审核</view>
			<view v-if="Fdata.Look>=2" :class="['inv-h',Inv==2?'inv-h-se':'']" @click="yj_searchForm(Inv=2)">二级审核</view>

		</view>

		<view style="position: absolute;width: 100%;margin-top: 100upx">
			<view class="formPage" v-if="Inv==5">
				<form>
					<view class="formPage-titel">
						<view>
							基本信息
						</view>
					</view>
					<cLabel title='标段名称' v-model='totalData.lrCheckSample.fSampletypename' :disabled="true"
						:dataText='totalData.lrCheckSample.fSampletypename' must="no" rightIcon='' mode='text' />
					<cLabel title='样品编号' v-model='totalData.lrCheckSample.fSamplemodel' :disabled="true"
						:dataText='totalData.lrCheckSample.fSamplemodel' rightIcon='' must="no" mode='text' />


					<cLabel title='报告编号' must="no" v-model='totalData.lrCheckSample.fSamplereportnostr' :disabled="true"
						:dataText='totalData.lrCheckSample.fSamplereportnostr' rightIcon='' mode='text' />

					<cLabel title='报告日期' must="no" v-model='totalData.lrCheckSample.fReportdates' :disabled="true"
						:dataText='totalData.lrCheckSample.fReportdates' rightIcon='' mode='textarea' />

					<cLabel title='工程部位/用途' must="no" v-model='totalData.lrCheckSample.fProjectlocation'
						:disabled="true" :dataText='totalData.lrCheckSample.fProjectlocation' rightIcon=''
						mode='text' />
					<view class="cu-form-group" style="margin-bottom: 50upx;">
					</view>
				</form>
			</view>

			<view class="formPage" v-if="Inv==0">
				<form>
					<view style="width: 100%;">
						<view class="formPage-titel">
							<view>
								闭合申请单
							</view>
						</view>
						<cLabel title='不合格参数及结果' must="no" v-model='totalData.checkSampletestclose.fWarningcontent'
							:disabled="true" :dataText='totalData.checkSampletestclose.fWarningcontent' rightIcon=''
							mode='textarea' />
						<cLabel title='处理方式' :must="must0" v-model='totalData.checkSampletestclose.fHandleway'
							:disabled="readonly0" :dataText='totalData.checkSampletestclose.fHandleway' rightIcon=''
							mode='text' />
						<cLabel title='处理人' v-model='totalData.checkSampletestclose.fHandleusername' :must="must0"
							:disabled="readonly0" :dataText='totalData.checkSampletestclose.fHandleusername'
							rightIcon='' mode='text' />
						<cLabel title='处理日期' over="calc(5em + 15px)"
							:dataText='totalData.checkSampletestclose.fHandledates' :must="must0" :disabled="readonly0"
							v-model='totalData.checkSampletestclose.fHandledates' mode='date1' />

						<view class="cu-bar bg-white" style="border-top:1px #ccc solid ;">
							<view class="action">
								<image :src="unIcon" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
									附件资料
							</view>
							<view class="action">
								{{fPhotofilelist.length}}/{{count}}
							</view>
						</view>
						<!--  -->
						<view v-if="must0 == 'must'" class="cu-form-group">
							<view class="grid col-4 grid-square flex-sub">
								<view v-if="fPhotofilelist.length<count">
									<lsj-upload ref="lsjUpload" childId="upload" :width="heights" :height="heights"
										:option="option" :size="size" :debug="debug" :instantly="instantly"
										@progress="onprogressfRecheckfileList" @change="onChange" :count='count'>
										<view class="solids" style="width: 156rpx;height: 156rpx;">
											<text class='cuIcon-add'></text>
										</view>
										<!-- <view class="btn" :style="{height: height}">选择附件</view> -->
									</lsj-upload>
								</view>


								<view class="bg-img" v-for="(item,index) in fPhotofilelist" :key="index"
									:data-url="item.url" @tap="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png" mode="aspectFill"></image>
									<view class="cu-tag bg-red"
										@tap.stop="DelFilefRecheckfileList($event,item.fId,index,fPhotofilelist)">
										<text class='cuIcon-close'></text>
									</view>
									<view class="fileText"> {{item.name}}</view>
								</view>

							</view>
						</view>
						<view v-if="must0 == 'no'" class="fileList">
							<div class="box" v-if="fPhotofilelist.length !== 0">
								<div class="file" style v-for="(item, index) in fPhotofilelist" :key="index"
									@click="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png">
									</image>
									<span class="text" style>{{ item.name }}</span>
								</div>
							</div>
						</view>

					</view>

					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>
			</view>


			<view class="formPage" v-if="Inv==1">
				<form>

					<view v-if="companyNum == 1 ||companyNum == 2  ||companyNum == 3">
						<view class="formPage-titel">
							<view>
								一级审核
							</view>

						</view>
						<cLabel title='审核结果' :must="must1" v-model='totalData.checkSampletestclose.fFirstcheckresult'
							:disabled="readonly1" :dataText='totalData.checkSampletestclose.fFirstcheckresult'
							:selectList="handle1" mode='selector2' :flagNum="FirstNum" @input='selectorFun' />
						<cLabel title='审核人' v-model='totalData.checkSampletestclose.fFirstcheckusername' :must="must1"
							:disabled="readonly1" :dataText='totalData.checkSampletestclose.fFirstcheckusername'
							rightIcon='' mode='text' />
						<cLabel title='审核日期' over="calc(5em + 15px)"
							:dataText='totalData.checkSampletestclose.fFirstcheckdates' :must="must1"
							:disabled="readonly1" v-model='totalData.checkSampletestclose.fFirstcheckdates' mode='date1'
							:flagNum="FirstNum" />
						<cLabel title='审核意见' must="no" v-model='totalData.checkSampletestclose.fFirstcheckopinion'
							:disabled="readonly1" :dataText='totalData.checkSampletestclose.fFirstcheckopinion'
							rightIcon='' mode='textarea' />

						<view class="cu-bar bg-white" style="border-top:1px #ccc solid ;">
							<view class="action">
								<image :src="unIcon" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
									附件资料
							</view>
							<view class="action">
								{{FauditFileurllist.length}}/{{count}}
							</view>
						</view>
						<!--  -->
						<view v-if="must1 == 'must'" class="cu-form-group">
							<view class="grid col-4 grid-square flex-sub">
								<view v-if="FauditFileurllist.length<count">
									<lsj-upload ref="lsjUpload1" childId="upload" :width="heights" :height="heights"
										:option="option" :size="size" :debug="debug" :instantly="instantly"
										@progress="onprogressfRecheckfileList" @change="onChange" :count='count'>
										<view class="solids" style="width: 156rpx;height: 156rpx;">
											<text class='cuIcon-add'></text>
										</view>
										<!-- <view class="btn" :style="{height: height}">选择附件</view> -->
									</lsj-upload>
								</view>


								<view class="bg-img" v-for="(item,index) in FauditFileurllist" :key="index"
									:data-url="item.url" @tap="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png" mode="aspectFill"></image>
									<view class="cu-tag bg-red"
										@tap.stop="DelFilefRecheckfileList($event,item.fId,index,FauditFileurllist)">
										<text class='cuIcon-close'></text>
									</view>
									<view class="fileText"> {{item.name}}</view>
								</view>

							</view>
						</view>
						<view v-if="must1 == 'no'" class="fileList">
							<div class="box" v-if="FauditFileurllist.length !== 0">
								<div class="file" style v-for="(item, index) in FauditFileurllist" :key="index"
									@click="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png">
									</image>
									<span class="text" style>{{ item.name }}</span>
								</div>
							</div>
						</view>

					</view>


					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>
			</view>
			<view class="formPage" v-if="Inv==2">
				<form>
					<view v-if="companyNum == 2 ||companyNum == 3">
						<view class="formPage-titel">
							<view>
								二级审核
							</view>

						</view>
						<cLabel title='审核结果' :must="must2" v-model='totalData.checkSampletestclose.fSecondcheckresult'
							:disabled="readonly2" :dataText='totalData.checkSampletestclose.fSecondcheckresult'
							:selectList="handle1" mode='selector2' :flagNum="SecondNum" @input='selectorFun' />
						<cLabel title='审核人' v-model='totalData.checkSampletestclose.fSecondcheckusername' :must="must2"
							:disabled="readonly2" :dataText='totalData.checkSampletestclose.fSecondcheckusername'
							rightIcon='' mode='text' />
						<cLabel title='审核日期' over="calc(5em + 15px)"
							:dataText='totalData.checkSampletestclose.fSecondcheckdates' :must="must2"
							:disabled="readonly2" v-model='totalData.checkSampletestclose.fSecondcheckdates' mode='date1'
							:flagNum="SecondNum" />
						<cLabel title='审核意见' must="no" v-model='totalData.checkSampletestclose.fSecondcheckopinion'
							:disabled="readonly2" :dataText='totalData.checkSampletestclose.fSecondcheckopinion'
							rightIcon='' mode='textarea' />

						<view class="cu-bar bg-white" style="border-top:1px #ccc solid ;">
							<view class="action">
								<image :src="unIcon" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
									附件资料
							</view>
							<view class="action">
								{{SauditFileurllist.length}}/{{count}}
							</view>
						</view>
						<!--  -->
						<view v-if="must2 == 'must'" class="cu-form-group">
							<view class="grid col-4 grid-square flex-sub">
								<view v-if="SauditFileurllist.length<count">
									<lsj-upload ref="lsjUpload2" childId="upload" :width="heights" :height="heights"
										:option="option" :size="size" :debug="debug" :instantly="instantly"
										@progress="onprogressfRecheckfileList" @change="onChange" :count='count'>
										<view class="solids" style="width: 156rpx;height: 156rpx;">
											<text class='cuIcon-add'></text>
										</view>
										<!-- <view class="btn" :style="{height: height}">选择附件</view> -->
									</lsj-upload>
								</view>
								<view class="bg-img" v-for="(item,index) in SauditFileurllist" :key="index"
									:data-url="item.url" @tap="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png" mode="aspectFill"></image>
									<view class="cu-tag bg-red"
										@tap.stop="DelFilefRecheckfileList($event,item.fId,index,SauditFileurllist)">
										<text class='cuIcon-close'></text>
									</view>
									<view class="fileText"> {{item.name}}</view>
								</view>

							</view>
						</view>
						<view v-if="must2 == 'no'" class="fileList">
							<div class="box" v-if="SauditFileurllist.length !== 0">
								<div class="file" style v-for="(item, index) in SauditFileurllist" :key="index"
									@click="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png">
									</image>
									<span class="text" style>{{ item.name }}</span>
								</div>
							</div>
						</view>

					</view>

					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>
			</view>

			<loading :shadeShow="shadeShow" :shadeClick="false" :backgroundColor="backgroundColor" :width="width"
				:height="height" ref="loading" :custom="false" :type="1" @callback="callback()">
			</loading>

		</view>

	</view>
</template>

<script src="./index.js">
</script>

<style scoped lang="less">
	@import './index.less';
</style>
